package com.mnemonic.views.field;

import java.awt.Color;

import javax.swing.JTextField;

/**
 * 使用此基类为了方便统一替换
 * 
 * @author lifeng
 * @date 2021/05/13
 */
public class Field extends JTextField {

    private static final long serialVersionUID = 1L;

    public Field(String name) {
        this.setText(name);
        this.setEditable(false);
        this.setBackground(Color.white);
        this.setHorizontalAlignment(JTextField.CENTER);
    }
}
